
INC=../include
LIB=../lib
BIN=.

FLAGS= -O3 -Wall

$@.c: $(LIB)/libmc920.a $@.c 
	$(MAKE) -C ../
	gcc $(FLAGS) $@.c -o $(BIN)/$@ -I$(INC) -L$(LIB) -lmc920 -lm

clean:
	rm histogram fftdemo linearfilter morphfilter medianfilter difusionfilter *.pgm *.txt
